package com.code.service;

import com.alibaba.fastjson.JSON;
import com.code.bean.User2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * todo
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/1/5
 */
@Service
public class MyService {

    @Autowired
    private User2 user2;

    public void print(){
        System.out.println(user2.getName());
    }
}
